import { _decorator, Component, Node, director, NodeEventType } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('StartGameContrl')
export class StartGameContrl extends Component {
    start() {
        this.node.on(NodeEventType.TOUCH_START, this.toGamePage, this)
    }

    update(deltaTime: number) {
        
    }



    // 开始游戏
    toGamePage() {
        director.loadScene('main')
    }

}


